package com.ruoyi.product.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.product.api.domain.PmsCategory;
import org.springframework.cloud.openfeign.FeignClient;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.product.api.factory.RemoteCategoryFallbackFactory;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteCategoryService", value = ServiceNameConstants.PRODUCT_SERVICE, fallbackFactory = RemoteCategoryFallbackFactory.class)
public interface RemoteCategoryService
{
    @GetMapping("/category/list")
    public TableDataInfo list(@RequestParam("pmsCategory") PmsCategory pmsCategory,
                              @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
